<?php /* Smarty version 2.6.22, created on 2011-10-10 06:22:18
         compiled from model/show_add_column.html */ ?>
<script src="<?php echo $this->_tpl_vars['template_dir']; ?>
/js/column.js"></script>
<div id="man_zone">
  <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
   
    <tr>
      <td width="100%" class="left_title_1" colspan="2">栏目添加</td>
    </tr>
    <tr>
      <td width="14%" >栏目名称： </td>
      <td width="86%"><input type="text" name="catname" id="catname" /><span class="explain" style="padding-left:100px">*设置栏目名称</span></td>
    </tr>
    <tr>
      <td width="14%" >英文目录： </td>
      <td width="86%"><input type="text" name="letter" id="letter" /><span class="explain" style="padding-left:100px">*设置英文目录</span></td>
    </tr>
    <tr>
      <td>选择模型： 	</td>
      <td>	
	 <select name="modelid" id="modelid">
	 <?php $_from = $this->_tpl_vars['type']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
      	<option value="<?php echo $this->_tpl_vars['key']; ?>
"><?php echo $this->_tpl_vars['item']; ?>
</option>
      	<?php endforeach; endif; unset($_from); ?>
      </select>
      <span class="explain" style="padding-left:165px">*设置栏目名称</span>
      </td>
    </tr>
    <tr>
      <td>上级栏目： </td>
      <td>
	 <select name="categoryid" id="categoryid">
	 <option value="0">作为一级栏目</option>
	  <?php $_from = $this->_tpl_vars['ret']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
      	<option <?php if ($this->_tpl_vars['id'] == $this->_tpl_vars['item']['id']): ?> selected="selected" <?php endif; ?> value="<?php echo $this->_tpl_vars['item']['id']; ?>
"><?php echo $this->_tpl_vars['item']['catname']; ?>
</option>
      	<?php if ($this->_tpl_vars['item']['arrchildid'] > 0): ?>
      	<?php $_from = $this->_tpl_vars['item']['child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['value']):
?>
      		<option <?php if ($this->_tpl_vars['id'] == $this->_tpl_vars['value']['id']): ?> selected="selected" <?php endif; ?> value="<?php echo $this->_tpl_vars['value']['id']; ?>
">&nbsp;&nbsp;|-<?php echo $this->_tpl_vars['value']['catname']; ?>
</option>
      	<?php endforeach; endif; unset($_from); ?>
      	<?php endif; ?>
      <?php endforeach; endif; unset($_from); ?>
      </select>      
      </td>
    </tr>
    <tr>
      <td>是否在导航显示： </td>
      <td>
      	<input type="radio" checked="" value="1" name="info[]">是
      	<input type="radio" checked="" value="0" name="info[]">否
      </td>
    </tr> 
    <tr>
      <td class="ui_btns" colspan="2"><input type="button" value="确定" class="but" id="add_but"/></td>
    </tr>
  </table>
</div>